<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Vue定义函数,调用函数</title>
		<script src="js/vue.js"></script>
		
	</head>
	<body>
		<div id="app">
			{{msg}}
			{{say()}}
			<!-- {{whatColor("白色")}} -->
			<button @click="whatColor(1)">按钮</button>
		</div>
	</body>
	<script>
		new Vue({
			el:"#app",
			data:{
				msg:"Hello VueJS"
			},
			methods:{
				say:function(){
					console.log("say method");
				},
				whatColor:function(color){
					//return color;
					alert("color");
				}
			}
		})
	</script>
</html>
